%script just to run the models in trainig set

clear all;
close all;

% %DEBUG: optimum values
%  Ps = [3 3;1 2;5 6;2 6;2 2];
%  Ws = [34.59; 7.556; 4.2476; 19.717; 29.217; 34.805];


%Y Target Variable
Y = csvread('Data\TestData\Y.csv');

%X rawdata training data set
X = csvread('Data\TestData\X.csv');

%feature scaling to avoid overflow
[X, mu, st] = featureScaling(X);

tic
%execute models
[Poptim PCostO Woptim WCostO Coptim] = approach1(Y, X, 400, 0.1, 1);

% [Woptim, WCostO] = approach2(Y, X, 7, 500, 0.01, 1);
toc

figure,plot(WCostO);
figure,plot(PCostO);

